# eric7.WebBrowser.WebInspector

Module implementing a QWebEngineView to load the web inspector in.

### Global Attributes

_RegisteredViews

### Classes

WebInspector | Class implementing a QWebEngineView to load the web inspector in.

### Functions

pushView | Function to push a view to the front of the list.
registerView | Function to register a view.
unregisterView | Function to unregister a view.

## WebInspector

Class implementing a QWebEngineView to load the web inspector in.

### Signals

inspectorClosed
  emitted to indicate the closing of the inspector window

### Derived from

QWebEngineView

### Class Attributes

None

### Class Methods

isEnabled | Class method to check, if the web inspector is enabled.

### Methods

WebInspector | Constructor
__loadFinished | Private slot handling the finished signal.
__reloadGeometry | Private method to restore the geometry.
closeEvent | Protected method to save the geometry when closed.
inspectElement | Public method to inspect an element.
setView | Public method to connect a view to this inspector.

### Static Methods

None

#### WebInspector.isEnabled (class method)

isEnabled()

Class method to check, if the web inspector is enabled.

Return:
  flag indicating the enabled state

Return Type:
  bool

#### WebInspector (Constructor)

WebInspector(parent=None)

Constructor

parent (QWidget)
  reference to the parent widget

#### WebInspector.__loadFinished

__loadFinished()

Private slot handling the finished signal.

#### WebInspector.__reloadGeometry

__reloadGeometry()

Private method to restore the geometry.

#### WebInspector.closeEvent

closeEvent(evt)

Protected method to save the geometry when closed.

evt (QCloseEvent)
  event object

#### WebInspector.inspectElement

inspectElement()

Public method to inspect an element.

#### WebInspector.setView

setView(view, inspectElement=False)

Public method to connect a view to this inspector.

view (WebBrowserView)
  reference to the view object
inspectElement (bool)
  flag indicating to start a web inspection

Up

## pushView

pushView(view)

Function to push a view to the front of the list.

view (WebBrowserView)
  reference to the view

Up

## registerView

registerView(view)

Function to register a view.

view (WebBrowserView)
  reference to the view

Up

## unregisterView

unregisterView(view)

Function to unregister a view.

view (WebBrowserView)
  reference to the view

Up